Conditions | 2 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | function domReady(fn) { |
||
28 | window.addEventListener('load', completed); |
||
29 | } else { |
||
30 | document.attachEvent('onreadystatechange', completed); |
||
31 | window.attachEvent('onload', completed); |
||
32 | |||
33 | var top = false; |
||
34 | |||
35 | try { |
||
36 | top = window.frameElement == null && document.documentElement; |
||
37 | } catch (e) {} |
||
38 | |||
39 | if (top && top.doScroll) { |
||
58 |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.